// 接口导入
import instance from '../utils/request'
// 导入工具函数
// import { getToken } from '../utils/token'

// 接口抽取
const searchSuggestion = ({ q }) => {
  return instance({
    url: '/v1_0/suggestion',
    method: 'get',
    params: { q }
    // headers: { Authorization: `Bearer ${getToken().token}` }
  })
}
// 暴露出去
export { searchSuggestion }
